//
//  QQNetworkEventDelegate.h
//  QQNetworkEngine
//
//  Created by elvisgao on 2020/9/1.
//  Copyright © 2020 Tencent. All rights reserved.
//

#import <Foundation/Foundation.h>
@protocol QQNetworkObjectProtocol;

NS_ASSUME_NONNULL_BEGIN

@protocol QQNetworkEventDelegate <NSObject>

- (void)willSendRequest:(id<QQNetworkObjectProtocol>)request;

- (void)didSendRequest:(id<QQNetworkObjectProtocol>)request success:(BOOL)success;

// timecost是从willSendRequest到didRecvResponse的耗时
- (void)didRecvResponse:(id<QQNetworkObjectProtocol>)request error:(NSError *)error timeCost:(UInt64)timeCost;

@end

NS_ASSUME_NONNULL_END
